﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace GameBanChim_Version1
{
    public abstract class EntityManager
    {
        protected VisibleGameObject[] _prototype;
        protected int _nprototype;
        protected string _xmlInfo;

        public virtual void InitPrototypes(ContentManager contenManager)
        {
            _nprototype = 0;
        }

        public virtual VisibleGameObject CreateObject(int idx)
        {
            if (idx < 0 || idx >= _nprototype)
            {
                return null;
            }
            return _prototype[idx].Clone();
        }

    }
}
